/*
* coder: Dzlua
* email: 505544956@qq.com
* time : 2018-04-13 15:27
*/

#include "../helper.h"

int APIENTRY _tWinMain(HINSTANCE hInstance
    , HINSTANCE hPrevInstance
    , LPTSTR lpCmdLine
    , int nCmdShow )
{
    auto mgr = ui::CManager::init_instance();
    if (!mgr->Init(hInstance)) {
        print("Manager init error.");
        return 1;
    }
    
    auto iret = mgr->Run();
    mgr->Uninit();

    return iret;
}